import { defineStore } from "pinia"

export const userStore = defineStore("user", {
  persist: true,
  persist: {
    paths: ["uesrdata"],
  },

  state() {
    return {
      uesrdata: null,
      id: "",
    }
  },
  getters: {
    getAdminname(state) {
      return state.uesrdata?.adminname;
    },
  },
  // actions: {
  //   setUesrdata(payload) {
  //     this.uesrdata = payload;
  //   },
  // },
})

